package com.recharge.core.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_merchant")
public class MerchantEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String merchantNo;

    private String privateKey;
    
    private String password;

    private String callback;

    /**
     * 0.同步 1.异步
     */
    private Integer isSync;

    /**
     * 1.get 2.post
     */
    private Integer methodType;

    private String merchantName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String telephone;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String eMail;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String bindAddress;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long warnAmountt;

    /**
     * 0.不允许可平价 1.允许 2.不允许只能盈利
     */
    private Integer lossType;

    private Date createDate;

    private Date modifiDate;

    private String creator;

    private String modifier;

    /**
     * 0.停用 1.正常
     */
    private Integer status;

    /**
     * -1 删除 1 有效
            
     */
    private Integer isDelete;

    @TableField(exist = false)
    private Long credit;
    @TableField(exist = false)
    private Long balance;
    @TableField(exist = false)
    private Long noAmount;

}
